package com.naiterui.ehp.bs.cms.modules.pharmacy.mapper;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.pharmacy.entity.WarehouseGoods;
import com.naiterui.ehp.bs.cms.modules.pharmacy.vo.WarehouseGoodsVO;

@DS(DsName.EHP)
public interface WarehouseGoodsMapper extends BaseMapper<WarehouseGoods> {

    Page<WarehouseGoodsVO> queryPage(@Param("page") IPage<WarehouseGoodsVO> page, @Param("warehouseId") Long warehouseId,
                                     @Param("ew") QueryWrapper<WarehouseGoodsVO> entityWrapper);

    Page<WarehouseGoodsVO> selectList(@Param("page") IPage<WarehouseGoodsVO> page, @Param("warehouseId") Long warehouseId);

}
